<template>
  <div>
    <vue-ueditor-wrap
      v-model="content"
      editor-id="editor"
      :config="editorConfig"
      :editorDependencies="['ueditor.config.js', 'ueditor.all.js']"
      style="height: 500px"
    />
  </div>
</template>
<script setup>
// https://gitee.com/modstart-lib/ueditor-plus 文章地址
import { ref } from 'vue'

const content = ref('<p>Hello UEditorPlus</p>')
const editorConfig = {
  // 后端服务地址，后端处理参考
  // https://open-doc.modstart.com/ueditor-plus/backend.html
  serverUrl: '/api/path/to/server',
  UEDITOR_HOME_URL: '/static/UEditorPlus/',
  UEDITOR_CORS_URL: '/static/UEditorPlus/',
}
</script>

<style scoped lang="scss"></style>
